import i18n from '@/lang'
export const flowDesignDetailNodeAttrColumns = [
  // {
  //   title: i18n.t('nodeCode'),
  //   dataIndex: 'flowElementId',
  //   key: 'flowElementCode',
  //   width: '140px',
  //   scopedSlots: { customRender: 'flowElementCode' }
  // },
  {
    title: i18n.t('nodeName'),
    dataIndex: 'flowElementName',
    key: 'flowElementName',
    width: '200px',
    scopedSlots: { customRender: 'flowElementName' }
  },
  {
    label: i18n.t('auditWay'),
    dataIndex: 'processModeDesc',
    key: 'processModeDesc',
    width: '120px',
    slots: {
      title: 'processModeDesc'
    }
  },
  {
    title: i18n.t('approvalRole'),
    dataIndex: 'roleCandidatesName',
    key: 'approvalRole',
    width: '120px',
    scopedSlots: { customRender: 'approvalRole' }
  },
  {
    dataIndex: 'roleCandidates',
    key: 'approver',
    width: '260px',
    slots: {
      title: 'approverColumn'
    },
    scopedSlots: { customRender: 'approver' },
    label: i18n.t('approver')
  },
  {
    dataIndex: 'canResultNotice',
    key: 'canResultNotice',
    width: '100px',
    slots: {
      title: 'resultNoticeColumn'
    },
    scopedSlots: { customRender: 'canResultNotice' },
    label: i18n.t('resultNotice')
  },
  {
    dataIndex: 'canInstanceCancelNotice',
    key: 'canInstanceCancelNotice',
    width: '100px',
    slots: {
      title: 'canInstanceCancelNoticeColumn'
    },
    scopedSlots: { customRender: 'canInstanceCancelNotice' },
    label: i18n.t('cancelNotice')
  },
  {
    title: i18n.t('nodeRemark'),
    dataIndex: 'flowElementRemark',
    key: 'remark',
    width: '200px',
    scopedSlots: { customRender: 'remark' }
  }
]

export const viewflowDesignDetailNodeAttrColumns = [
  // {
  //   title: i18n.t('nodeCode'),
  //   dataIndex: 'taskId',
  //   key: 'flowElementCode',
  //   width: '140px',
  //   scopedSlots: { customRender: 'flowElementCode' }
  // },
  {
    title: i18n.t('nodeName'),
    dataIndex: 'taskName',
    key: 'flowElementName',
    width: '140px',
    scopedSlots: { customRender: 'flowElementName' }
  },
  {
    label: i18n.t('auditWay'),
    dataIndex: 'processModeDesc',
    key: 'processModeDesc',
    width: '120px',
    slots: {
      title: 'processModeDesc'
    }
  },
  {
    title: i18n.t('approvalRole'),
    dataIndex: 'candidatesName',
    key: 'approvalRole',
    width: '180px',
    scopedSlots: { customRender: 'approvalRole' }
  },
  {
    title: '预期处理用户',
    dataIndex: 'assignee',
    key: 'approver',
    width: '180px',
    scopedSlots: { customRender: 'approver' }
  },
  {
    title: '实际处理用户',
    dataIndex: 'actualAssignee',
    key: 'actualAssignee',
    width: '180px',
    scopedSlots: { customRender: 'actualAssignee' }
  },
  {
    title: i18n.t('urgeTimes'),
    dataIndex: 'urgeTimes',
    key: 'urgeTimes',
    width: '120px',
    scopedSlots: { customRender: 'canResultNotice' }
  },
  {
    title: i18n.t('operationResult'),
    dataIndex: 'taskStatusName',
    key: 'operationResult',
    width: '120px',
    scopedSlots: { customRender: 'canInstanceCancelNotice' }
  },
  {
    title: i18n.t('attachment'),
    dataIndex: 'attachment',
    key: 'attachment',
    width: '100px',
    scopedSlots: { customRender: 'attachment' }
  },
  {
    title: '处理时间',
    dataIndex: 'auditTime',
    key: 'verifyTime',
    width: '180px',
    scopedSlots: { customRender: 'verifyTime' }
  },
  {
    title: '处理意见',
    dataIndex: 'taskComment',
    key: 'reviewComments',
    width: '200px',
    scopedSlots: { customRender: 'reviewComments' }
  }
]
